package au.com.handsunited.model.servicecategory;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import au.com.handsunited.model.MotherOfAllEntities;

/**
 * @author Arun Chandrasekhar
 *
 */
public class ServiceCategory extends MotherOfAllEntities implements Comparable<ServiceCategory> {

	private String name;

	private static Logger logger = LoggerFactory.getLogger(ServiceCategory.class);

	/**
	 *
	 */
	public ServiceCategory() {
		super();
	}

	/**
	 * @param name
	 */
	public ServiceCategory(String name) {
		super();
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
	 */
	@Override
	public int compareTo(ServiceCategory o) {
		return name.compareToIgnoreCase(o.getName());
	}

}
